package com.ecej.controller;

import com.ecej.uc.po.EmaillistPo;
import com.ecej.uc.po.ExpensePo;
import com.ecej.utils.ImportUtil;

import java.io.UnsupportedEncodingException;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * Created by yue on 2017/3/7.
 */
public class Test {
//    public static void main(String args[]) throws UnsupportedEncodingException {
//        String mailcontent="PGRpdiBkaXI9Imx0ciI+PGJyPjxkaXYgY2xhc3M9ImdtYWlsX3F1b3RlIj4tLS0tLS0tLS0tIEZvcndhcmRlZCBtZXNzYWdlIC0tLS0tLS0tLS08YnI+RnJvbTogPGIgY2xhc3M9ImdtYWlsX3NlbmRlcm5hbWUiPjxhIGhyZWY9Im1haWx0bzpzZXJ2aWNlQHBheXBhbC5jb20uaGsiPnNlcnZpY2VAcGF5cGFsLmNvbS5oazwvYT48L2I+IDxzcGFuIGRpcj0ibHRyIj4mbHQ7PGEgaHJlZj0ibWFpbHRvOnNlcnZpY2VAcGF5cGFsLmNvbS5oayI+c2VydmljZUBwYXlwYWwuY29tLmhrPC9hPiZndDs8L3NwYW4+PGJyPkRhdGU6IE1vbiwgRmViIDI3LCAyMDE3IGF0IDEwOjEwIFBNPGJyPlN1YmplY3Q6IFJlY2VpcHQgZm9yIFlvdXIgUGF5bWVudCB0byBVcHdvcmsgRXNjcm93IEluYy48YnI+VG86IFByb2R1Y3RzIEJ1bmRsZSAmbHQ7PGEgaHJlZj0ibWFpbHRvOmVsbGlzbGV1bmcxMjEyQGdtYWlsLmNvbSI+ZWxsaXNsZXVuZzEyMTJAZ21haWwuY29tPC9hPiZndDs8YnI+PGJyPjxicj48ZGl2PjxkaXYgY2xhc3M9Im1fMjMwNDY3OTE5OTEzMTE5MjU1OXBwbWFpbCI+DQoNCjx0YWJsZSBhbGlnbj0iY2VudGVyIiBib3JkZXI9IjAiIGNlbGxwYWRkaW5nPSIwIiBjZWxsc3BhY2luZz0iMCIgd2lkdGg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FtaWx5OmFyaWFsLGhlbHZldGljYSxzYW5zLXNlcmlmO2ZvbnQtc2l6ZToxMXB4Ij48c3BhbiBjbGFzcz0ibV8yMzA0Njc5MTk5MTMxMTkyNTU5eHB0Rm9vdGVyIG1fMjMwNDY3OTE5OTEzMTE5MjU1OXBwaWQiPlBheVBhbCBFbWFpbCBJRCBQUDEyMCAtIDdlZGNjNmM2MTNmMTwvc3Bhbj48L3NwYW4+PGltZyBoZWlnaHQ9IjEiIHdpZHRoPSIxIiBzcmM9Imh0dHBzOi8vdC5wYXlwYWwuY29tL3RzP3BwaWQ9JmFtcDtjdXN0PTRFTjM0NDA3UlA3MTQzNTRGJmFtcDtjbmFjPUhLJmFtcDtyc3RhPWVuX0dCJmFtcDt1bnB0aWQ9ZDJlNzBjY2UtZmQ2Yi0xMWU2LWI4NTgtOGNkY2Q0YjZmMzQ4JmFtcDt1bnBfdHBjaWQ9ZW1haWwtcmVjZWlwdC14Y2xpY2stcGF5bWVudCZhbXA7ZT1vcCZhbXA7bWNobj1lbSZhbXA7cz1jaSZhbXA7bWFpbD1zeXMmYW1wO3BhZ2U9bWFpbjplbWFpbDo6Ojo6OiIgYm9yZGVyPSIwIiBhbHQ9IiI+PC90ZD48L3RyPjwvdGJvZHk+PC90YWJsZT48L2Rpdj48L2Rpdj48L2Rpdj48YnI+PC9kaXY+DQo=\n";
//        ImportUtil iu = new ImportUtil();
//        Map resultm = iu.decodeMailHtml(mailcontent);
//        String target="Vy Phung <vyphung2702@gmail.com>";
//        if(resultm.get("flag").toString().equals("true")){
//            String[] sp = target.split("<");
//            String sp0 = sp[0];
//            String sp1 = sp[1];
//            String[] sp11 = sp1.split("@");
//            String sp111 = sp11[1];
//            if (sp111.substring(1, 2).equals("."))
//            sp111 = sp111.substring(2);
//            String sp1111 = sp111.replace(">", "");
//            ExpensePo ep = new ExpensePo();
//            BigDecimal bd = new BigDecimal(resultm.get("cost").toString());
//            ep.setCost(bd);
//            ep.setServiceurl(sp1111);
//            ep.setServicename(sp[0]);
////            ep.setInvoiceDate();
////            ep.setMailContent();
////            ep.setMailId();
////            ep.setMailSubject();
//            ep.setStatus("0");
//            ep.setTarget(target);
//            System.out.println(ep.getCost());
//            System.out.println(ep.getServicename());
//            System.out.println(ep.getServiceurl());
//        }
//    }
}
